<?php
require $this->__RAD__ . 'component/global/head.php';
?>

<?php
require $this->__RAD__ . 'component/global/nav.php';
?>

<!-- 内容 -->
<div class="wrap">
    <div class="banner">
        <img src="<?= $this->__STATIC__ ?>images/product/banner.jpg">
    </div>
    <div class="allTitle">
        <div class="width">
            <div class="contain clearboth">
                <?php
                    require $this->__RAD__ . 'component/global/product_column.php';
                ?>
                <?php
                    require $this->__RAD__ . 'component/global/product_bread_crumb.php';
                ?>
            </div>
        </div>
    </div>
    <div class="product">
        <div class="width">
            <div class="contain clearboth">
                <?php
                    require $this->__RAD__ . 'component/global/product_left.php';
                ?>

                <div class="allRight">
                    <div class="page1">
                        <div class="top">
                            <p>
                                <?= $this->now_category_name ?>
                            </p>
								<span class="clearboth">
									<em></em>
									<em></em>
								</span>
                        </div>
                        <?php
                        if ($this->pics) :
                                ?>
                                <div class="pageT">
                                    <div class="cont">
                                        <div class="swiper-container ptSwiper">
                                            <div class="swiper-wrapper">
                                                <?php
                                                foreach ($this->pics as $val) :
                                                    ?>
                                                    <div class="swiper-slide">
                                                        <a href="javascript:;">
                                                            <p class="pt">
                                                                <span></span>
                                                                <img src="<?= $this->__CDN__ ?>pics/l/<?= $val->image ?>">
                                                            </p>
                                                            <p class="pb">
                                                    <span>
                                                        <?= $val->title ?>
                                                    </span>
                                                            </p>
                                                        </a>
                                                    </div>
                                                    <?php
                                                endforeach;
                                                ?>
                                            </div>
                                            <div class="swiper-pagination ptPagi"></div>
                                        </div>
                                        <div class="swiper-button-prev ptPrev">
                                            <span></span>
                                        </div>
                                        <div class="swiper-button-next ptNext">
                                            <span></span>
                                        </div>
                                    </div>
                                </div>
                                <?php
                        endif;
                        ?>
                        <div class="pageTab">
                            <div class="tabs">
                                <ul class="clearboth">
                                    <li>
                                        <a href="javascript:;">
                                            主要参数
                                        </a>
                                    </li>
                                    <li>
                                        <a href="javascript:;">
                                            机构优点
                                        </a>
                                    </li>
                                </ul>
                            </div>
                            <div class="tabsNav">
                                <div class="tent">
                                    <?= $this->categoryName->parameter ?>
                                </div>
                                <div class="tent">
                                    <?= $this->categoryName->advantage ?>
                                </div>
                            </div>
                        </div>
                        <div class="cen">
                            <ul class="clearboth">
                                <?php
                                    if ($this->products && is_array($this->products)) :
                                        foreach ($this->products as $key => $val) :
                                ?>
                                            <li class="clearboth" style="width:48%;float:left;border-bottom:0px;
                                                <?php if ($key % 2 == 1) : ?>
                                                margin-left:4%;
                                                <?php else: ?>
                                                margin-left:0;
                                                <?php endif; ?>
                                            ">
                                                <p style="width:100%;">
                                                    <a href="<?= $val->is_details == 1 ? '/detail/' . $val->archives_id : 'javascript:;' ?>">
                                                            <span class="spanT">
                                                                <em></em>
                                                                <img src="<?= $this->__CDN__ ?>pics/l/<?= $val->cover ?>">
                                                            </span>
                                                            <span class="spanB">
                                                                <em>
                                                                    <?= $val->title; ?>
                                                                </em>
                                                            </span>
                                                    </a>
                                                </p>
                                            </li>
                                            <?php if ($key % 2 == 1) : ?>
                                                <div style="width:100%;border-bottom:2px solid #eaeaea;
                                                margin:-30px 0px 30px 0px;float:left;">
                                                </div>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                <?php endif; ?>

                            </ul>
                        </div>
                        <div class="pageNum">
                            <?php
                                require $this->__RAD__ . 'component/global/page.php';
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?php
require $this->__RAD__ . 'component/global/right.php';
?>

<?php
require $this->__RAD__ . 'component/global/footer.php';
?>

<script type="text/javascript">
    $(function(){
        products();
        switchs('.product .page1 .pageTab .tabs ul li','.product .page1 .pageTab .tabsNav .tent')
    })
</script>